package com.baoleme.entity;

import java.io.Serializable;

import jakarta.validation.constraints.NotEmpty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

/**
 * <p>
 *
 * </p>
 *
 * @author wuyunbin
 * @since 2024-09-19
 */
@Getter
@Setter
public class Member implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @NotEmpty(message = "名字不能为空")
    private String name;

    @Length(min = 6, max = 16, message = "密码长度在6-16位之间")
    private String password;

    @Length(min = 11, max = 11, message = "电话号码长度为11位")
    private String phone;

    private String gender;

    @Length(min = 18,max = 18,message = "身份证长度为18位")
    private String idCard;

    private String avatar;

    private Integer status;

}
